package com.Interface;

/**
 * ClassName: SonTest
 * Package:
 * Description:
 *
 * @Author 软件232班——欧阳昊淼
 * @Create 2024/9/9 17:45
 * @Version 17.0.2
 */
public class SonTest {
    public static void main(String[] args) {
     SonLikeDo son= new SonLikeDo();
     son.byBike();
     son.dance();
     son.playBasketball();
     son.sing();
    }
}

class SonLikeDo extends People implements DadLikeDo,MomLikeDo{
    @Override
    public void byBike() {
        System.out.println("我和爸爸一样喜欢骑车");
    }

    @Override
    public void playBasketball() {
        System.out.println("我是灌篮高手颇有爸爸的样子");
    }

    @Override
    public void dance() {
        System.out.println("我会跳街舞，妈妈会跳舞。");
    }

    @Override
    public void sing() {
        System.out.println("我会唱歌，妈妈教我唱的。");
    }



}